package com.examonline.utils.redis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RedisData {

    private Object object;
    /**
     * 设置过期时间
     */
    private LocalDate expire;

    public static RedisData redisData(Object data,LocalDate expire){
        return new RedisData(data,expire);
    }

}
